package code

import "fmt"

func Funct() {
	var a int = 10
	var b int = 20
	// swap(a, b)
	var swap1 func(x, y int) (int, int)
	swap1 = func(x, y int) (int, int) {
		return y, x
	}
	fmt.Println(swap1(a, b))
}

func max(n1, n2 int) int {
	if n1 > n2 {
		return n1
	}
	return n2
}

func swap(x, y int) (int, int) {
	return y, x
}
